package com.island.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Admin entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="admin")
public class Admin  implements java.io.Serializable {


    // Fields

     private Integer loginid;
     private String loginname;
     private String loginpassword;


    // Constructors

    /** default constructor */
    public Admin() {
    }

    
    /** full constructor */
    public Admin(String loginname, String loginpassword) {
        this.loginname = loginname;
        this.loginpassword = loginpassword;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="loginid", unique=true, nullable=false)

    public Integer getLoginid() {
        return this.loginid;
    }
    
    public void setLoginid(Integer loginid) {
        this.loginid = loginid;
    }
    
    @Column(name="loginname", length=8)

    public String getLoginname() {
        return this.loginname;
    }
    
    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }
    
    @Column(name="loginpassword", length=8)

    public String getLoginpassword() {
        return this.loginpassword;
    }
    
    public void setLoginpassword(String loginpassword) {
        this.loginpassword = loginpassword;
    }
   








}